import 'package:flutter_main_demo/pages/splash.dart';
import 'package:get/get_navigation/src/routes/get_route.dart';

import '../pages/home/binding.dart';
import '../pages/home/view.dart';
import 'app_routes.dart';

class AppPages {
  static const INITIAL = Routes.SPLASH;

  static List<GetPage> getPages() {
    List<GetPage> pages = [];

    pages = [
      GetPage(
          participatesInRootNavigator: true,
          name: Routes.SPLASH,
          page: () => const Splash()),
      GetPage(
        name: Routes.HOME,
        page: () => HomePage(),
        binding: HomeBinding(),
      ),
    ];

    return pages;
  }
}
